package cn.ainit.bj.comparsion.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;


@Entity
@Table(name="BJ_COMPARISON")

public class BjComparison  implements java.io.Serializable {

     private String codeid;
     private String comparisonId;         //如果提示错误（这里是外键错误）    写上类型（String） comparisonId（数据库外键的列名）（遵从规范）
     private String name;
     private Double sortnum;
     private String parentCodeid;
     private String belongCodeid;
     private String rspCodeid;


    // Constructors

    /** default constructor */
    public BjComparison() {
    }

	/** minimal constructor */
    public BjComparison(String codeid) {
        this.codeid = codeid;
    }
   
    @Id 
    @Column(name="CODEID", unique=true, nullable=false, length=15)
    public String getCodeid() {
        return this.codeid;
    }
    
    public void setCodeid(String codeid) {
        this.codeid = codeid;
    }
	@Column(name="COMPARISON_ID")//提示键（alt + ?）  注解一定要写在get 方法上
	public String getComparisonId() {
		return comparisonId;
	}
    public void setComparisonId(String comparisonId) {
		this.comparisonId = comparisonId;
	}
    @Column(name="NAME", length=100)

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    @Column(name="SORTNUM", precision=18, scale=4)

    public Double getSortnum() {
        return this.sortnum;
    }
    
    public void setSortnum(Double sortnum) {
        this.sortnum = sortnum;
    }
    
    @Column(name="PARENT_CODEID", length=15)

    public String getParentCodeid() {
        return this.parentCodeid;
    }
    
    public void setParentCodeid(String parentCodeid) {
        this.parentCodeid = parentCodeid;
    }
    
    @Column(name="BELONG_CODEID", length=15)

    public String getBelongCodeid() {
        return this.belongCodeid;
    }
    
    public void setBelongCodeid(String belongCodeid) {
        this.belongCodeid = belongCodeid;
    }
    
    @Column(name="RSP_CODEID", length=15)

    public String getRspCodeid() {
        return this.rspCodeid;
    }
    
    public void setRspCodeid(String rspCodeid) {
        this.rspCodeid = rspCodeid;
    }
   








}